Part Number Hot Search : 
MCP21 1N4001S MCP2510 AS081 MAX4350 HV20320 W78C354 SA78CA
Product Description
Full Text Search
 

To Download LK202-25-FW Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 LK202-25 Technical Manual Revision: 3.1
Contents
Contents 1 Getting Started 1.1 Display Options Available 1.2 Accessories . . . . . . . . 1.3 Features . . . . . . . . . . 1.4 Connecting to a PC . . . . 1.5 Installing the Software . . 1.5.1 uProject . . . . . . ii 1 1 2 5 5 6 6 7 8 8 10 10 12 12 13 15 16 16 16 16 17 17 17 18 18 18 19 20 21 21 22 22 22 23 23 23 24 24 ii
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
2
Hardware Information 2.1 DB-9 Connector . . . . . . . . . . . . 2.1.1 Power Through DB-9 Jumper 2.2 Power/Data Connector . . . . . . . . 2.3 Protocol Select Jumpers . . . . . . . . 2.4 General Purpose Outputs . . . . . . . 2.5 Dallas 1-Wire Bridge . . . . . . . . . 2.6 Manual Override . . . . . . . . . . . 2.7 Keypad Interface Connector . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
3
Troubleshooting 3.1 The display does not turn on when power is applied. . . . . . . . . . . . . . . . . . . . . . . 3.2 The display module is not communicating. . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 The display module is communicating, however text cannot be displayed. . . . . . . . . . . Communications 4.1 Introduction . . . . . . . . . . . . . . 4.1.1 I2 C Communication Summary 4.1.2 I2 C Transaction Example . . . 4.1.3 Serial Communication . . . . 4.2 Changing the I2 C Slave Address . . . 4.3 Changing the Baud Rate . . . . . . . 4.4 Setting a Non-Standard Baud Rate . . Text 5.1 Introduction . . . . . . . . . 5.1.1 Character Set . . . . 5.1.2 Control Characters . 5.2 Auto Scroll On . . . . . . . 5.3 Auto Scroll Off . . . . . . . 5.4 Clear Screen . . . . . . . . . 5.5 Changing the Startup Screen 5.6 Set Auto Line Wrap On . . . 5.7 Set Auto Line Wrap Off . . .
4
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
5
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
Matrix Orbital
LK202-25
5.8 5.9 5.10 5.11 5.12 5.13 5.14 5.15 6
Set Cursor Position . . . . Go Home . . . . . . . . . Move Cursor Back . . . . Move Cursor Forward . . . Underline Cursor On . . . Underline Cursor Off . . . Blinking Block Cursor On Blinking Block Cursor Off
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
24 25 25 25 26 26 26 26 27 27 27 28 29 29 30 30 31 31 31 32 32 33 33 33 33 34 34 34 34 35 36 36 37 37 37 37 38 38 39 39 40 40 iii
Special Characters 6.1 Introduction . . . . . . . . . . . . . . . 6.2 Creating a Custom Character . . . . . . 6.3 Saving Custom Characters . . . . . . . 6.4 Loading Custom Characters . . . . . . 6.5 Save Startup Screen Custom Characters 6.6 Initialize Medium Number . . . . . . . 6.7 Place Medium Numbers . . . . . . . . 6.8 Initialize Horizontal Bar . . . . . . . . 6.9 Place Horizontal Bar Graph . . . . . . . 6.10 Initialize Narrow Vertical Bar . . . . . . 6.11 Initialize Wide Vertical Bar . . . . . . . 6.12 Place Vertical Bar . . . . . . . . . . . . General Purpose Output 7.1 Introduction . . . . . . . . . 7.2 General Purpose Output Off 7.3 General Purpose Output On . 7.4 Set Startup GPO state . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
. . . . . . . . . . . .
7
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
8
Dallas 1-Wire 8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 Search for a 1-Wire Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3 Dallas 1-Wire Transaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Keypad 9.1 Introduction . . . . . . . . . . 9.1.1 I2 C Interface . . . . . 9.1.2 RS232 Interface . . . 9.2 Auto Transmit Key Presses On 9.3 Auto Transmit Key Presses Off 9.4 Poll Key Press . . . . . . . . . 9.5 Clear Key Buffer . . . . . . . 9.6 Set Debounce Time . . . . . . 9.7 Set Auto Repeat Mode . . . . 9.8 Auto Repeat Mode Off . . . . 9.9 Assign Keypad Codes . . . . .
9
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
Matrix Orbital
LK202-25
10 Display Functions 10.1 Introduction . . . . . . . 10.2 Display On . . . . . . . 10.3 Display Off . . . . . . . 10.4 Set Brightness . . . . . . 10.5 Set and Save Brightness . 10.6 Set Contrast . . . . . . . 10.7 Set and Save Contrast . . 11 Data Security 11.1 Introduction . . . . . . 11.2 Set Remember . . . . . 11.3 Data Lock . . . . . . . 11.4 Set and Save Data Lock 11.5 Write Customer Data . 11.6 Read Customer Data . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
. . . . . . . . . . . . .
41 41 41 42 42 42 42 43 44 44 44 45 46 46 46 46 46 47 47 49 49 49 50 51 51 51 52 52 53 53 55 55 55 55 55 57 58 58 59 59
12 Miscellaneous 12.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.2 Read Version Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.3 Read Module Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Command Summary 13.1 Communications . . . . 13.2 Text . . . . . . . . . . . 13.3 Special Characters . . . 13.4 General Purpose Output . 13.5 Dallas 1-Wire . . . . . . 13.6 Keypad . . . . . . . . . 13.7 Display Functions . . . . 13.8 Data Security . . . . . . 13.9 Miscellaneous . . . . . . 13.10Command By Number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14 Appendix 14.1 Specifications . . . . . . . 14.1.1 Environmental . . 14.1.2 Electrical . . . . . 14.2 Optical Characteristics . . 14.3 Physical Layout . . . . . . 14.4 Ordering Information . . . 14.5 Definitions . . . . . . . . . 14.6 Contacting Matrix Orbital . 14.7 Revision History . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
. . . . . . . . .
Matrix Orbital
LK202-25
iv
1
Getting Started
The LK202-25 is an intelligent LCD display designed to decrease development time by providing an instant solution to any project. With the ability to communicate via serial RS-232/TTL and I2 C protocols, the versatile LK202-25 can be used with virtually any controller. The ease of use is further enhanced by an intuitive command structure to allow display settings such as backlight brightness, contrast and baud rate to be software controlled. Additionally, up to thirty-two custom charaters such as character sets for bar graphs, medium and large numbers may be stored in the non-volitile memory to be easily recalled and displayed at any time.
1.1
Display Options Available
The LK202-25 comes in a wide variety of colors including the standard yellow/green or inverse yellow, the popular blue/white and the crisp white/grey as well as inverse red which is excellent for viewing at night. Extended voltage, and temperature options are also available, to allow you to select the display which will best fit your project needs.
Figure 1: LK202-25 Options Matrix Orbital LK202-25 1
1.2
Accessories
NOTE Matrix Orbital provides all the interface accessories needed to get your display up and running. You will find these accessories and others on our e-commerce website at http://www.matrixorbital.com. To contact a sales associate see Section 14.6 on page 59 for contact information.
Figure 2: 5V Power Cable Adapter
Figure 3: 12V Power Cable Adapter (V/VPT Models)
Figure 4: Breadboard Cable
Figure 5: Serial Cable 4FT
Matrix Orbital
LK202-25
2
Figure 6: Communication and 5V Power Cable
Figure 7: Aluminum Mountings
Matrix Orbital
LK202-25
3
Figure 8: Keypad Mountings
Figure 9: Mounting Kits
Matrix Orbital
LK202-25
4
Figure 10: 4X4 Keypad
1.3
* * * * * * * * * * * * * * *
Features
20 column by 2 line alphanumeric liquid crystal display Selectable communication protocol, serial at RS232 or TTL levels or I2 C Six, 5V -20mA, general purpose outputs for a variety of applications Lightning fast communication speeds, up to 57.6 kbps for RS-232 and 100 kbps for I2 C Extended temperature available for extreme environments of -20C to 70C Extended voltage and efficient power supply available Built in font with provision for up to 8 user defined characters Use of up to 127 modules on the same 2 wire I2 C interface Dallas One-Wirebus that is capable of communicating with up to 32 devices Fully buffered so that no delays in transmission are ever necessary Ability to add a customized splash / startup screen Software controlled contrast and brightness with configurable time-out setting up to 90 minutes Use of up to a 25 key keypad with a 10 key buffer Horizontal or vertical bar graphs Fits Matrix Orbital's mountings without any modifications
1.4
Connecting to a PC
The LK202-25 connects seamlessly to a PC and it is an excellent means of testing the functionality. To connect your display to a PC, you will require a standard RS-232 9-pin serial cable such as the one pictured in figure 5 on page 2, as well as a modified 5V power adapter such as the one pictured in figure 2 on page 2. In order to connect your display to a personal computer follow these easy instructions: 1. Plug the serial cable into the com port you wish to use. 2. Connect the modified 5V power adapter to a power lead from your PC power supply (you will have to open your computer case). 3. Connect the serial cable to the DB-9 connector on the back of the display. 4. Connect the 5V power adapter to the 4-pin connector on the back of the display. Matrix Orbital LK202-25 5
WARNING DO NOT use the standard floppy drive power connector, as this will not provide you with the correct voltage and will damage the display module.
Figure 11: PC vs Matrix Orbital Display Module Wiring
1.5
Installing the Software
1.5.1 uProject
uProject was designed by Matrix Orbital to provide a simple and easy to use interface that will allow you to test all of the features of our alpha numeric displays. To install uProject from the Matrix Orbital CD, follow the following steps: 1. 2. 3. 4. Insert the Matrix Orbital CD-ROM into the CD drive Locate the file, uProject.exe, which should be in the "CD-drive:\Download" directory. Copy uProject.exe to a directory that you wish to run it from. Double click on "uProject.exe"
Be sure to check the information selected in the COM Setup the first time uProject is run. Once this information is entered correctly the program can be used to control all functions of the graphic display. Matrix Orbital LK202-25 6
Comport
The serial port the display is plugged in to. The communication speed the display module is set to. (Default 19,200)
Baudrate
Figure 12: uProject Settings
NOTES * uProject and other alphanumeric software may also be downloaded from Matrix Orbital's support site at http://www.matrixorbital.ca/software/software_alpha/
2
Hardware Information
Refer to the following diagram for this chapter: Matrix Orbital LK202-25 7
1 DB-9 Connector 2 Power Through DB9 Jumper 3 GPOs 4 Manual Override
5 Power / Data Connector 6 Keypad Interface 7 Protocol Select Jumpers
8 Optional Dallas 1-Wire Bridge
Figure 13: LK202-25
2.1
DB-9 Connector
The LK202-25 provides a DB-9 Connector to readily interface with serial devices which use the EIA232 standard signal levels of 12V to 12V. It is also possible to communicate at TTL levels of 0 to +5V by setting the Protocol Select Jumpers to TTL. As an added feature it is also possible to apply power through pin 9 of the DB-9 Connector in order to reduce cable clutter. However, in order to accomplish this you must set the Power Through DB-9 Jumper.
Pin 2 Pin 3 Pin 5
Pin 9
Tx \ SDA (I2 C data) Rx \ SCL (I2 C clock) GND PWR (Must solder Power Through DB9 Jumper. See table 1 on page 10 for power requirements.)
Figure 14: RS-232 Pin out
2.1.1 Power Through DB-9 Jumper
In order to provide power through pin 9 of the DB-9 Connector you must place a solder jumper on the Power through DB-9 Jumper pictured in figure 15 below. The LK202-25 allows all voltage models to use the power through DB-9 option, see table 1 on page 10 for display module voltage requirements. Matrix Orbital LK202-25 8
Figure 15: Power Through DB-9 Jumper WARNING Do not apply voltage through pin 9 of the DB-9 connector AND through the Power/Data Connector at the same time.
Matrix Orbital
LK202-25
9
2.2
Power/Data Connector
The Power/Data Connector provides a standard connector for powering the display module. The LK20225 requires five volts for the standard display module, between nine to fifteen for the wide voltage (V) and between nine to thirty-five volts for the wide voltage with efficient power supply module (VPT). The voltage is applied through pins one and four of the four pin Power/Data connector. Pins two and three are reserved for serial transmission, using either the RS-232/TTL or the I2 C protocol, depending on what has been selected by the Protocol Select Jumpers. Pins two and three may be reversed by changing the Legacy Connector Jumpers in order to be compatible with previous PCB revisions.
Pin 1 Pin 2 Pin 3 Pin 4
PWR (See table 1) Rx \ SCL (I2 C clock) Tx \ SDA (I2 C data) GND
Figure 16: Power Connector and Pin out
Supply Voltage Supply Current Inrush WARNINGS
Table 1: Power Requirements Standard -V +5Vdc 0.25V +9V to +15V 148 mA typical 148 mA
-VPT +9V to +35V
* Do not apply any power with reversed polarization. * Do not apply any voltage other than the specified voltage.
2.3
Protocol Select Jumpers
The Protocol Select Jumpers, pictured below in figure 17, provide the means necessary to toggle the display module between RS-232, TTL and I2 C protocols. As a default, the jumpers are set to RS-232 mode with solder jumps on the 232 jumpers. In order to place the display module in I2 C mode you must first remove the solder jumps from the 232 jumpers and then place them on the I2C jumpers. The display will now be in I2 C mode and have a default slave address of 0x50 unless it has been changed. Similarly, in order to change the display to TTL mode, simply remove the zero ohm resistors from the 232 or I2 C jumpers and solder them to the TTL jumpers. Matrix Orbital LK202-25 10
Figure 17: Protocol Select Jumpers
Matrix Orbital
LK202-25
11
2.4
General Purpose Outputs
A unique feature of the LK202-25 is the ability to control relays and other external devices using a General Purpose Output, which can provide up to 20 mA of current and +5Vdc from the positive side of the GPO. This is limited by a 240 ohm resistor which is located to the above right of the GPOs as pictured below in figure 21. If the device, which is being driven by a GPO, requires a relatively high current (such as a relay) and has an internal resistance of its own greater than 250 ohms, then the 240 ohm resistor may be removed and replaced with a Jumper.
+
GND MAX: 20 mA, +5Vdc
Figure 18: General Purpose Output
WARNING If connecting a relay, be sure that it is fully clamped using a diode and capacitor in order to absorb any electro-motive force (EMF) which will be generated.
2.5
Dallas 1-Wire Bridge
In addition to the six general purpose outputs the LK202-25 offers an optional Dallas 1-wire bridge, to allow for an aditional thirty two 1-wire devices to be connected to the display. Please note the the display normally does not come with the Dallas 1-wire bridge. It will have to be ordered as a custom. Please talk to your sales representative if you would like this option. See Section 8 on page 34. Matrix Orbital LK202-25 12
Figure 19: Dallas 1-Wire Bridge
2.6
Manual Override
The Manual Override is provided to allow the LK202-25 to be reset to factory defaults. This can be particularly helpful if the display module has been set to an unknown baud rate or I2 C Slave Address and you are no longer able to communicate with it. If you wish to return the module to its default settings you must:
1. Power off the display module.
2. Place a Jumper on the Manual Override pins.
3. Power up the display module.
4. The display module is now set to its default values listed below in table 2.
5. Edit and save settings. Matrix Orbital LK202-25 13
Matrix Orbital
LK202-25
14
Table 2: Default Values Brightness 255 Baud Rate 19.2 kbps I2 C Slave Address 0x50 Data Lock False RS232AutoTransmitData True
NOTE The display module will revert back to the old settings once turned off, unless the settings are saved.
2.7
Keypad Interface Connector
The LK202-25 provides a Keypad Interface Connector which allows for up to a five by five matrix style keypad to be directly connected to the display module. Key presses are generated when a short is detected between a row and a column. When a key press is generated a character, which is associated with the particular key press, is automatically sent on the Tx communication line. If the display module is running in I2 C mode, the "Auto Transmit Keypress" function may be turned off, to allow the key presses to remain in the buffer so that they may be polled. The character that is associated with each key press may also be altered using the "Assign Key Codes" command, for more detailed information see the Keypad Section, on page 36.
Figure 21: Keypad Interface Connector NOTE The Ground / +5V pin is toggled by the jumper to the right of the keypad connector. Jump 1 & 2 for +5V or 2 & 3 for GND.
Matrix Orbital
LK202-25
15
3
3.1
Troubleshooting
The display does not turn on when power is applied.
* First, you will want to make sure that you are using the correct power connector. Standard floppy drive power cables from your PC power supply may fit on the Power/Data Connector however they do not have the correct pin out as can be seen in figure 11 on page 6. Matrix Orbital supplies power cable adapters for connecting to a PC, which can be found in the Accessories Section on page 2. * The next step is to check the power cable which you are using for continuity. If you don't have an ohm meter, try using a different power cable, if this does not help try using a different power supply. * The last step will be to check the Power / Data Connector on the LK202-25. If the Power / Data Connector has become loose, or you are unable to resolve the issue, please contact Matrix Orbital, see 14.6 on page 59 for contact information.
3.2
The display module is not communicating.
* First, check the communication cable for continuity. If you don't have an ohm meter, try using a different communication cable. If you are using a PC try using a different Com Port. * Second, please ensure that the display module is set to communicate on the protocol that you are using, by checking the Protocol Select Jumpers. To change the protocol used by the display module see Section 2.3 on page 10. * Third, ensure that the host system and display module are both communicating on the same baud rate. The default baud rate for the display module is 19200 bps. * If you are communicating to the display via I2 C please ensure that the data is being sent to the correct address. The default slave address for the display module is 0x50. NOTE I2 C communication will always require pull up resistors. * Finally, you may reset the display to it's default settings using the Manual Override Jumper, see Section 2.6 on page 13.
3.3
The display module is communicating, however text cannot be displayed.
* A common cause may be that the contrast settings have been set to low. The solution to this problem is to adjust the contrast settings. The default setting that will work in most environments is 128. NOTE Optimal contrast settings may vary according to factors such as temperature, viewing angle and lighting conditions. If you are unable to resolve any issue please contact Matrix Orbital. See 14.6 on page 59 for contact information.
Matrix Orbital
LK202-25
16
4
4.1
Communications
Introduction
The commands listed in this chapter describe how to configure data flow on the LK202-25.
4.1.1 I2 C Communication Summary
The LK202-25 is capable of communicating at 100 KHz in I2 C mode, with 127 units addressable on a single I2 C communication line. However, in order to communicate via I2 C you must first ensure that pull up resistors, with a nominal value of 1K to 10K, are placed on the SCL and SDA communication lines coming from pins two and three of the Data / Power Connector respectively. Data responses by the module are automatically output via RS232, in case the host will be querying the module, it is necessary for the host to inform the module that its responses are to be output via I2 C. This can be done by sending command 254 /160 / 0 to turn off auto transmission of data in RS232. This will keep the data in the buffer until the master clocks a read of the slave. The I2 C data lines operate at 5V normally or 3.3V for -1U style units. The LK202-25 uses 8-bit addressing, with the 8th or Least Significant Bit (LSB) bit designated as the read/write bit, a 0 designates a write address and a 1 designates a read address. The default read address of the display module will be 0x51, whereas the write address is 0x50 by default. This address may be changed by using cmd 254 / 51 /
. The LK202-25 should only be sent addresses that are even (LSB is 0). When the I2 C master wishes to write to the display, the effective address is $50 (0101 0000) , since the LSB has to be 0 for an I2 C master write. When the I2 C master wishes to read the LK202-25, the effective address is $51 (0101 0001), since the LSB has to be 1 for an I2 C master read. If we take a standard Phillips 7 bit address of $45 (100 0101), Matrix Orbital's LK202-25 would describe this Phillips I2 C address as $8A (1000 1010). The read address would be $8B (1000 1011). The unit does not respond to general call address ($00). When communicating in I2 C the LK202-25 will send an ACK on the 9th clock cycle when addressed. When writing to the display module, the display will respond with a ACK when the write has successfully been completed. However if the buffer has been filled, or the module is too busy processing data it will respond with a NAK. When performing a multiple byte read within one I2 C transaction, each byte read from the slave should be followed by an ACK to indicate that the master still needs data, and a NAK to indicate that the transmission is over. The LK202-25 has some speed limitations, especially when run in I2 C mode. Here are some considerations when writing I2 C code: * to be able to read the replies of query commands (eg. cmds 54, 55) the following command must be sent (only needs to be sent once, so this can be done somewhere in init): 254 / 160 / 0 this command puts the reply data in the I2 C output buffer instead of the RS232 output buffer. Please note that due to a 16 byte output buffer, query commands that reply with more than 16 bytes cannot be read (eg cmd Get FileSystem Directory) * 3ms delay between the read commands * 625us delay in between data bytes within a transaction is necessary * 375us between transactions is necessary Matrix Orbital LK202-25 17
NOTE These delays are consrevative, and may be decreased based on performance
4.1.2 I2 C Transaction Example
The typical I2 C transaction contains four parts: the start sequence, addressing, information, and stop sequence. To begin a transaction the data line, SDA, must toggle from high to low while the clock line, SCL, is high. Next, the display must be addressed using a one byte hexadecimal value, the default to write to the unit is 0x50, while read is 0x51. Then information can be sent to the unit; even when reading, a command must first be sent to let the unit know what type of information it is required to return. After each bit is sent, the display will issue an ACK or NACK as described above. Finally, when communication is complete, the transaction is ended by toggling the data line from low to high while the clock line is high. An example of the use of this algorithm to write a simple "HELLO" message can be seen in 3.
Table 3: I2 C Transaction Algorithm START Toggle SDA high to low Address 0x50 Information 0x48 0x45 0x4C 0x4C 0x4F STOP Toggle SDA low to high
4.1.3 Serial Communication
In addition to being able to communicate via I2 C the LK202-25 communicates natively through the RS-232 protocol at at a default baud rate of 19,200 bps and is capable of standard baud rates from 9600 to 115,200 bps. Furthermore the LK202-25 is also capable of reproducing any non-standard baud rate in between using values entered into our baud rate generation algorithm and set through command 164 (0xA4). The display module communicates at standard voltage levels of -30V to +30V or at TTL levels of 0 to +5V by setting the Protocol Select Jumpers to TTL.
4.2
Changing the I2 C Slave Address
Syntax Hexadecimal Decimal ASCII Parameter adr 0xFE 0x33 [adr] 254 51 [adr] 254 "3" [adr] Length Description 1 The new I2 C write address (0x00 0xFF).
Parameters
Matrix Orbital
LK202-25
18
Description
This command sets the I2 C write address of the module between 0x00 and 0xFF. The I2 C write address must be an even number and the read address is automatically set to one higher. For example if the I2 C write address is set to 0x50, then the read address is 0x51.
NOTE The change in address is immediate. Remembered Default Always 0x50
4.3
Changing the Baud Rate
Syntax 0xFE 0x39 [speed] 254 57 [speed] 254 "9" [speed] Length Description 1 Hex value corresponding to a baud rate. This command sets the RS-232 port to the specified [speed]. The change takes place immediately. [speed] is a single byte specifying the desired port speed. Valid speeds are shown in the table below. The display module can be manually reset to 19,200 baud in the event of an error during transmission, including transmitting a value not listed below, by setting the manual override jumper during power up. However, it should be noted that this command will be ignored until the manual override jumper is removed again. Hex Value 53 29 CF 67 33 22 19 10 8 Baud Rate 1200 2400 4800 9600 19200 28800 38400 57600 115200 Hexadecimal Decimal ASCII Parameter speed
Parameters
Description
NOTE This command is not available in I2 C mode. Remembered Default Always 19,200 bps
Matrix Orbital
LK202-25
19
4.4
Setting a Non-Standard Baud Rate
Syntax Parameters 0xFE 0xA4 [speed] 254 164 [speed] Length Description 2 Inputed LSB MSB from baud rate formula (12-2047). This command sets the RS-232 port to a non-standard baud rate. The command accepts a two byte parameter that goes directly into the CrystalSpeed modules baud generator. Use the formula, speed = 8xDesiredBaud - 1 to calculate the [speed] for any baud rate setting. The speed can be anywhere from 12 to 2047 which corresponds to a baud range of 977 to 153,800 baud. Setting the baud rate out of this range could cause the display to stop working properly and require the Manual Override jumper to be set. Always Hexadecimal Decimal Parameter speed
Description
Remembered
Matrix Orbital
LK202-25
20
Examples Crystal Speed 16 Mhz Desired BAUD 13,500
speed =
crystalspeed -1 8 DesiredBaud
speed =
16, 000, 000 -1 8 13, 500
speed = 148.15 - 1
speed = 147.15
* LSB = 0x93 (rounded) * MSB = 0x00 * Intended Baud Rate: 13,500 baud Actual Baud Rate: 16,000,000 =13,514 Percent Difference: 0.1% 8(147+1)
NOTES * Results from the formula are rounded down to the nearest whole number (i.e 73.07 = 73). * This formula becomes less acurate as baud rates increase, due to rounding. * Place the speed result backwards into the formula to receive the actual baud rate. (Baud = CrystalSpeed ) 8(speed+1) * The actual baud rate must be within 3% of the intended baud rate for the device to communicate.
NOTES * This command is not available in I2 C mode.
5
5.1
Text
Introduction
The LK202-25 is an intelligent display module, designed to reduce the amount of code necessary to begin displaying data. This means that it is able to display all ASCII formated characters and strings that are sent to it, which are defined in the current character set. The display module will begin displaying text at the top left corner of the display area, known as home, and continue to print to the display as if it was a page on a typewriter. When the text reaches the bottom right row, it is able to automatically scroll all of the lines up and continue to display text, with the auto scroll option set to on. Matrix Orbital LK202-25 21
5.1.1 Character Set
Figure 22: Character Set
5.1.2 Control Characters
In addition to a full text set, the LK202-25 display supports the following ASCII Control characters: 0x08 Backspace 0x0C Clear screen / New page 0x0D Carriage return 0x0A Line feed / New line
5.2
Auto Scroll On
Matrix Orbital
LK202-25
22
Syntax
Description
Hexadecimal 0xFE 0x51 Decimal 254 81 ASCII 254 "Q" When auto scrolling is on, it causes the display to shift the entire display's contents up to make room for a new line of text when the text reaches the end of the last row. Yes On
Remembered Default
5.3
Auto Scroll Off
Syntax Hexadecimal 0xFE 0x52 Decimal 254 82 ASCII 254 "R" When auto scrolling is disabled the text will wrap to the top left corner of the display area when the text reaches the end of last row. Yes
Description
Remembered
5.4
Clear Screen
Syntax Hexadecimal 0xFE 0x58 Decimal 254 88 ASCII 254 "X" This command will immediately clear all of the contents of the display. No
Description Remembered
5.5
Changing the Startup Screen
Syntax Hexadecimal 0xFE 0x40 Decimal 254 64 ASCII 254 "@" In order to change the text that is displayed by the LK202-25 when it starts up simply send the command bytes 254 64 followed by the characters that you wish to display, starting from the top left. This command will automatically line wrap the characters that are sent to it. Yes
Description
Remembered
Matrix Orbital
LK202-25
23
5.6
Set Auto Line Wrap On
Syntax Hexadecimal 0xFE 0x43 Decimal 254 67 ASCII 254 "C" Enabling Auto Line Wrap will allow the cursor to automatically wrap over to the next line when the current line is full.
Description
NOTE Line wraps may occur in the middle of a word. Remembered Yes
5.7
Set Auto Line Wrap Off
Syntax Hexadecimal 0xFE 0x44 Decimal 254 68 ASCII 254 "D" Disabling Auto Line Wrap will allow you to change the line configuration. The normally sequentional progression becomes an alternating pattern. Rather than moving from line 1 to 2 to 3, the display will write from line 1 to 3 to 2. For a two line display, this means that a row's worth of characters written between the first and second lines or after the second will not be displayed on the screen or wrapped. The four line models will see only an alteration in line flow. Yes
Description
Remembered
5.8
Set Cursor Position
Syntax Hexadecimal Decimal ASCII Parameter col row 0xFE 0x47 [col] [row] 254 71 [col] [row] 254 "G" [col] [row] Length Description 1 Column 1 Row
Parameters
Matrix Orbital
LK202-25
24
Description
This command will allow you to manually set the cursor position, which controls the text insertion point, by specifying the [col] and [row] of the new proposed cursor position.
NOTE If the cursor position is set past the end of a line it will wrap to the beginning of the next line. Remembered No
5.9
Go Home
Syntax Hexadecimal 0xFE 0x48 Decimal 254 72 ASCII 254 "H" This command will return the cursor to the top left corner of the display area, identified as row one, column one. No
Description
Remembered
5.10 Move Cursor Back
Syntax Hexadecimal 0xFE 0x4C Decimal 254 76 ASCII 254 "L" This command will move the cursor back one space. If this command is sent when the cursor is at the home position the cursor will wrap to the last row / column position if line wrap is on. Sending this command will not effect the text displayed on the module, however any characters that are sent will over write the current characters that are being displayed. No
Description
Remembered
5.11 Move Cursor Forward
Syntax Hexadecimal Decimal ASCII 0xFE 0x4D 254 77 254 "M"
Matrix Orbital
LK202-25
25
Description
This command will move the cursor forward one space. If this command is sent when the cursor is at the bottom right position the cursor will wrap back to the home position if line wrap is on. Sending this command will not effect the text displayed on the module, however any characters that are sent will over write the current characters that are being displayed. No
Remembered
5.12 Underline Cursor On
Syntax Hexadecimal 0xFE 0x4A Decimal 254 74 ASCII 254 "J" This command will cause the LK202-25 to display an underline cursor at the current text insertion point. Yes
Description
Remembered
5.13 Underline Cursor Off
Syntax Hexadecimal 0xFE 0x4B Decimal 254 75 ASCII 254 "K" This command will turn the the underline cursor off. Yes
Description Remembered
5.14 Blinking Block Cursor On
Syntax Hexadecimal 0xFE 0x53 Decimal 254 83 ASCII 254 "S" This command will cause the LK202-25 to display a block cursor at the current text insertion point. Yes
Description
Remembered
5.15 Blinking Block Cursor Off
Matrix Orbital
LK202-25
26
Syntax
Description Remembered
Hexadecimal 0xFE 0x54 Decimal 254 84 ASCII 254 "T" This command will turn the block cursor off. Yes
6
6.1
Special Characters
Introduction
The LK202-25 has the ability to create four different sets of eight custom characters and save them to internal banks of memory. Each set of eight can be recalled from memory at any time, and selected characters can be written to the display screen. Characters and sets can be created at any time, saved for later use, and displayed to the screen through the intuitive command structure described below.
6.2
Creating a Custom Character
Syntax Hexadecimal Decimal ASCII Parameter refID data 0xFE 0x4E [refID] [data] 254 78 [refID] [data] 254 "N" [refID] [data] Length Description 1 Character reference ID (0-7). 8 Character data.
Parameters
Matrix Orbital
LK202-25
27
Description
The LK202-25 allows for upta to eight custom defined characters to be added onto the the character set. A custom character is a five by eight pixel matrix with each row represented by a byte value. For example: Custom Character 'h' 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 Decimal 16 16 16 16 22 25 17 17 Hex 0x10 0x10 0x10 0x10 0x16 0x19 0x11 0x11
1 1 1 1 1 1 1 1
0 0 0 0 0 1 1 1
Remembered
Each bit value of one, in the table, represents an on pixel, whereas a value of zero represents a pixel that is turned off. Therefore in order to define custom character 'h' you would send the command byte prefix 254 followed by the command 78. Next, you will have to select the memory location in which you wish to save the character in. The available memory locations for this command are zero through to seven. After sending the memory location, or [refID], you may then send the eight byte custom character data in sequence from the top to the bottom. Once you have defined a custom character you may display it by sending the display module the [refID]. For example if a custom character was saved in position one, the command to display the custom character, at the current cursor position, would be simply to send the number one to the display module without quotes. No
6.3
Saving Custom Characters
Syntax Parameters Hexadecimal Decimal Parameter Bank ID Data 0xFE 0xC1 [Bank] [ID] [Data] 254 193 [Bank] [ID] [Data] Length Description 1 Memory bank to save to (0-4). 1 Character ID (0-7) 8 Character Definition
Matrix Orbital
LK202-25
28
Description
New to the LK202-25 has added five non-volatile memory banks for custom character storage. This is intended to allow you to create your own custom bar graphs, medium/large numbers and startup screen. However, each memory bank may be used to store a set of any eight custom characters; with the only provision being that memory bank zero contains the characters that will be used in the startup screen. By default the memory banks will be loaded as follows: [Bank] 0 1 2 3 Description Startup screen characters. Horizontal bars Vertical bars Medium numbers
Remembered
In order to save new custom characters into a memory bank, follow the same process as you would for creating a custom character, see Section 6.2 on page 27, only use 254 193 [Bank Number] before sending the [ID] and character [Data]. Yes
6.4
Loading Custom Characters
Syntax Parameters Description Hexadecimal 0xFE 0xC0 [Bank] Decimal 254 192 [Bank] Parameter Length Description Bank 1 Memory bank to save to (0-4). This command is used to load the custom characters into the volatile memory so that they may be used. If custom bar graph or number characters are stored in the memory banks, this command may be used instead of initializing the bar graph / number. To use this command send the command bytes followed by the [Bank] that contains the custom character data that you want to retrieve. No
Remembered
6.5
Save Startup Screen Custom Characters
Syntax Parameters Hexadecimal Decimal Parameter refID data 0xFE 0xC2 [refID] [data] 254 194 [refID] [data] Length Description 1 Character reference ID (0-7). 8 Character data.
Matrix Orbital
LK202-25
29
Description
Using this command you may create the custom characters. that will be stored in memory bank zero, which will be used in the startup screen. For more information about creating custom characters see Section 6.2 on page 27.
NOTES * Changes only take place once the power has been cycled. * This command is the same as sending CMD 254 / 193 / 0 / [ID] / [DATA] Remembered Yes
6.6
Initialize Medium Number
Syntax Hexadecimal 0xFE 0x6D Decimal 254 109 ASCII 254 "m" This command will load the default medium number characters into the volatile memory. If you have stored your own custom medium numbers, use the 'Load Custom Characters' command to load your custom character data into the volatile memory. This command will allow you to use the 'Place Medium Numbers' command. No
Description
Remembered
6.7
Place Medium Numbers
Syntax Hexadecimal 0xFE 0x6F [Row] [Col] [Digit] Decimal 254 111 [Row] [Col] [Digit] ASCII 254 "o" [Row] [Col] [Digit] Parameter Length Description Row 1 The row number. Col 1 The column number. Digit 1 Medium number to place (0-9). This command will place a medium number (two columns high) at the [row] and [col] specified.
Parameters
Description
NOTE Medium Numbers must be initialized before this command is executed. Remembered No
Matrix Orbital
LK202-25
30
6.8
Initialize Horizontal Bar
Syntax Hexadecimal 0xFE 0x68 Decimal 254 104 ASCII 254 "h" This command will load the default horizontal bar characters into the volatile memory. If you have stored your own custom horizontal bar data, use the 'Load Custom Characters' command instead to load your custom bar data into the volatile memory. This command will allow you to use the 'Place Horizontal Bar' command. No
Description
Remembered
6.9
Place Horizontal Bar Graph
Syntax 0xFE 0x7C [Col] [Row] [Dir] [Length] 254 124 [Col] [Row] [Dir] [Length] 254 "|" [Col] [Row] [Dir] [Length] Length Description 1 The column number. 1 The row number. 1 The direction of the bar data (0 or 1). Length 1 The length of the bar data. This command will place a bar graph at [row], [column]. A [Dir] value of zero will cause the bar to go right, and one will cause the bar to go left. The [Length] is the size in pixels of the bar graph. Hexadecimal Decimal ASCII Parameter Col Row Dir
Parameters
Description
NOTES * Horizontal Bars must be initialized before this command is executed. * Bar graphs may be one directional only. Remembered No
6.10 Initialize Narrow Vertical Bar
Syntax Hexadecimal Decimal ASCII 0xFE 0x73 254 115 254 "s"
Matrix Orbital
LK202-25
31
Description
This command will load the narrow vertical bar characters into the volatile memory. If you have stored your own custom vertical bar data, use the 'Load Custom Characters' command instead to load your custom bar data into the volatile memory. This command will allow you to use the 'Place Vertical Bar' command.
NOTE Narrow bars have a width of two pixels. Remembered No
6.11 Initialize Wide Vertical Bar
Syntax Hexadecimal 0xFE 0x76 Decimal 254 118 ASCII 254 "v" This command will load the wide vertical bar characters into the volatile memory. If you have stored your own custom vertical bar data, use the 'Load Custom Characters' command instead to load your custom bar data into the volatile memory. This command will allow you to use the 'Place Vertical Bar' command.
Description
NOTE Wide bars have a width of five pixels. Remembered No
6.12 Place Vertical Bar
Syntax Hexadecimal Decimal ASCII Parameter Column Length 0xFE 0x3D [Column] [Length] 254 61 [Column] [Length] 254 "=" [Column] [Length] Length Description 1 The column number. 1 The length of the bar data.
Parameters
Matrix Orbital
LK202-25
32
Description
This command will place a bar graph at the specified [Column] with the specified [Length]. The [Length] is the size in pixels of the bar graph.
NOTES * A Vertical Bar style must be initialized before this command is executed. * Bar graphs may be one directional only. Remembered No
7
7.1
General Purpose Output
Introduction
General purpose outputs allow you to connect devices, such as LEDs, to the LK202-25 and supply them with up to 20mA of current at 5V. The LK202-25 has 6 GPOs which are software controlled, with functions to turn them on/off and set the power state for the next startup.
7.2
General Purpose Output Off
Syntax Hexadecimal 0xFE 0x56 [Num] Decimal 254 86 [Num] ASCII 254 "V" [Num] Parameter Length Description Num 1 GPO number. This command turns OFF general purpose output [num].
Parameters Description
NOTE OFF means that the output is pulled LOW. Remembered Yes
7.3
General Purpose Output On
Syntax Hexadecimal Decimal ASCII Parameter Num 0xFE 0x57 [Num] 254 87 [Num] 254 "W" [Num] Length Description 1 GPO number.
Parameters
Matrix Orbital
LK202-25
33
Description
This command turns ON general purpose output [num]. The standard GPO's on the LK202-25 output 20mA of current at 5V.
NOTE ON means the output is pulled HIGH. Remembered Yes
7.4
Set Startup GPO state
Syntax Parameters Hexadecimal 0xFE 0xC3 [Num] [state] Decimal 254 195 [Num] [state] Parameter Length Description Num 1 GPO number. state 1 Startup state (0: Off, 1: On) This command will set the startup state for the GPO on the next power up. A value of one will cause the GPO to be off on the next startup while a value of one will cause the GPO to be on.
Description
NOTE This command does not affect the current state of the GPO. Remembered Always
8
8.1
Dallas 1-Wire
Introduction
Another convenient feature of the LK202-25 is that it provides a Dallas 1-wire interface in order to readily communicate with up to thirty two 1-wire devices on a single bus. 1-wire communication is begun by discovering the address of the device that you wish to communicate with. To do this you must send the "Search for a 1-Wire Device' command. After you have established the address of the device that you wish to communicate with, you may begin a transaction with the device
8.2
Search for a 1-Wire Device
Syntax Hexadecimal Decimal 0xFE 0xC8 0x2 254 200 2
Matrix Orbital
LK202-25
34
Description
This command will allow you to begin communicating with the devices on the 1-wire bus by returning a packet containing device information for each 1-wire device on the bus in the form of: Search Return Packet Offset (Bytes) 0 Offset (Bytes) 2 Description
0x232A Preamble 2 1 0x8A Packet is 10 bytes long, another address will follow 0x0A Packet is 10 bytes long, this is the last address 3 4 5 13 1 1 8 1 0x31 - 1-Wire Packet Type Error Code (0x00 for success) 1-Wire Address CRC8 0x00 means the last address was valid Remembered No
8.3
Dallas 1-Wire Transaction
Syntax Parameters Hexadecimal Decimal Parameter flags SndBits RcvBits Data 0xFE 0xC8 0x1 [flags] [SndBits] [RcvBits] [Data] 254 200 1 [flags] [SndBits] [RcvBits] [Data] Length Description 1 Flags to control optional components of the transaction. 1 The number of bits you will be transmitting on the bus. 1 The number of bits you will be reading on the bus. variable Data to be transmitted, LSB to MSB.
Matrix Orbital
LK202-25
35
Description
This command will perform a single transaction on the 1-wire bus in this order: 1. Bus Reset. 2. Transmit data onto the bus. 3. Receive data from the bus. The number of bits to be transmitted and read must be specified for this command to be successful.
NOTE To determine what functions the device will respond to, consult the devices' data sheet. 1-Wire Flags Bit 7 6 5 4 3 2 1 0 Description Unused (0 for future compatibility) Add a CRC8 to the end of the transmitted data (0 for future compatibility) Assume last received byte is a CRC8 and validate it Reset bus before transaction 1-Wire Error Codes Code 0x00 0x01 0x02 0x03 Remembered No Description Success Unknown 1-Wire Command No devices on the bus Fatal search error
9
9.1
Keypad
Introduction
The LK202-25 supports up to a 25 key, matrix style, keypad and may be configured to allow key presses to be automatically transmitted via RS-232 or polled through I2 C. The LK202-25 also allows for autorepeating key presses, and remapping of all keypad character codes. The connector is not keyed so the keypad will probably plug in either of two ways. The display will not be damaged by reversing the connector. However, the keypad will generate a different ASCII character mapping for each position. If the connector has fewer than 10 pins it should be centered on the display Matrix Orbital LK202-25 36
connector. The keypad is scanned whenever a key is pressed;there is no continuous key scan. This means that key presses are dealt with immediately without any appreciable latency. This also prevents electrical noise which is often caused by continuous key scans.
9.1.1 I2 C Interface
The keypad is read by I2 C master read. In short, this means that a read of the module will always return the first unread key press. A read is initiated by writing to the module with its base address plus 1, then clocking the module's return byte after the module releases the SDA line. Much more detail on this basic I2 C function can be found in the I2 C specification by Phillips.
9.1.2 RS232 Interface
By default on any press of a key, the module will immediately send out the key code at the selected baud rate. This behavior can be modified using commands found in the next section.
9.2
Auto Transmit Key Presses On
Syntax Hexadecimal 0xFE 0x41 Decimal 254 65 ASCII 254 "A" In this mode, all key presses are sent immediately to the host system without the use of the poll keypad command. This is the default mode on power up.
Description
NOTE This command is not available in I2 C. Remembered Default Yes On
9.3
Auto Transmit Key Presses Off
Syntax Hexadecimal Decimal ASCII 0xFE 0x4F 254 79 254 "O"
Matrix Orbital
LK202-25
37
Description
In this mode, up to 10 key presses are buffered until the unit is polled by the host system, via the poll keypad command 254 38. Issuing this command places the unit in polled mode.
NOTE This command is not available in I2 C. Remembered Yes
9.4
Poll Key Press
Syntax Hexadecimal 0xFE 0x26 Decimal 254 38 ASCII 254 "&" This command returns any buffered key presses via the serial interface. The host system must be set up to receive key codes. When the display receives this command, it will immediately return any buffered key presses which may have not been read already. If there is more than one key press buffered, then the high order bit (MSB) of the returned key code will be set (1). If this is the only buffered key press, then the MSB will be cleared (0). If there are no buffered key presses, then the returned code will be 0x00. Please note that to make use of this command, the "Auto Transmit Key Presses" mode should be off.
Description
NOTE This command is not available in I2 C. To read keys in I2 C mode, one just needs to address the module and read a byte. No preceding commands are necessary. If there are no keys pressed the read will result in a 0x00. Remembered No
9.5
Clear Key Buffer
Syntax Hexadecimal 0xFE 0x45 Decimal 254 69 ASCII 254 "E" This command clears any unread key presses. In a menu application, if the user presses a key which changes the menu context, any following key presses may be inaccurate and can be cleared out of the buffer between menu changes to prevent jumping around the menu tree. It may also be used, in effect, to reset the keypad in case the host application resets for whatever reason.
Description
Matrix Orbital
LK202-25
38
Remembered
No
9.6
Set Debounce Time
Syntax 0xFE 0x55 [time] 254 85 [time] 254 "U" [time] Length Description 1 Debounce time in increments of 6.554ms (0 - 255). This command sets the time between key press and key read. All key types with the exception of latched piezo switches will 'bounce' for a varying time, depending on their physical characteristics. The [time] value is in increments of 6.554ms. The default debounce time for the module is 8 (about 52ms), which is adequate for most membrane keypads. Yes 8 Hexadecimal Decimal ASCII Parameter time
Parameters
Description
Remembered Default
9.7
Set Auto Repeat Mode
Syntax Hexadecimal Decimal ASCII Parameter mode 0xFE 0x7E [mode] 254 126 [mode] 254 "~" [mode] Length Description 1 Auto Repeat Mode (0: Resend Key , 1: Key Up/Down)
Parameters
Matrix Orbital
LK202-25
39
Description
Two auto repeat modes are available and are set via the same command: * Resend Key Mode: 0x00 * Key Up/Down Mode: 0x01 Resend Key Mode This mode is similar to the action of a keyboard on a PC. In this mode, when a key is held down, the key code is transmitted immediately followed by a 1/2 second delay. After this delay, key codes will be sent via the RS-232 interface at a rate of about 5 codes per second. This mode has no effect if polling or if using the I2 C interface. Key Up/Down Mode This mode may be used when the typematic parameters of the "Resend Key Code" mode are unacceptable or if the unit is being operated in polled mode. The host system detects the press of a key and simulates an auto repeat inside the host system until the key release is detected. In this mode, when a key is held down, the key code is transmitted immediately and no other codes will be sent until the key is released. On the release of the key, the key release code transmitted will be a value equal to the key down code plus 20 hex.
Remembered Examples
Yes When the key code associated with key 'P' (0x50) is pressed, the release code is 'p' (0x70). In RS-232 polled mode or via the I2 C, the "Key Down / Key Up" codes are used; however, the user should be careful of timing details. If the poll rate is slower than the simulated auto-repeat it is possible that polling for a key up code will be delayed long enough for an unwanted key repeat to be generated.
9.8
Auto Repeat Mode Off
Syntax Hexadecimal 0xFE 0x60 Decimal 254 96 ASCII 254 "`" This command turns auto repeat mode off. See Set Auto Repeat Mode. No
Description Remembered
9.9
Assign Keypad Codes
Syntax Hexadecimal Decimal 0xFE 0xD5 [KDown] [KUp] 254 213 [KDown] [KUp]
Matrix Orbital
LK202-25
40
Parameters
Description
Parameter Length Description KDown 25 Key down codes KUp 25 Key up codes This command will allow you to reassign the key codes that correspond to the key presses on the matrix style key pad. The first 25 bytes that are transmitted will be used for the key down codes and the next 25 bytes that are transmitted will be used for the key up codes. Key Down Key Up 12 3 45 12345 1ABCDE 1abcde 2FGH I J 2fghij 3KLMNO 3klmno 4PQRST 4pqr st 5UVWXY 5uvwxy Always
Remembered
10
Display Functions
10.1 Introduction
The LK202-25 employs software controlled display settings, which allow for control over, clearing the screen, changing the brightness and contrast or setting timers for turning it on or off. The combination of these allow you complete software control over your display's appearance.
10.2 Display On
Syntax 0xFE 0x42 [min] 254 66 [min] 254 "B" [min] Length Description 1 Minutes before turning the display on (0 to 90). This command turns the backlight on after the [minutes] timer has expired, with a ninety minute maximum timer. A time of 0 specifies that the backlight should turn on immediately and stay on. When this command is sent while the remember function is on, the timer will reset and begin after power up. Yes 0 Hexadecimal Decimal ASCII Parameter min
Parameters
Description
Remembered Default
Matrix Orbital
LK202-25
41
10.3 Display Off
Syntax Hexadecimal 0xFE 0x46 Decimal 254 70 ASCII 254 "F" This command turns the backlight off immediately. The backlight will remain off until a 'Display On' command has been received. Yes
Description
Remembered
10.4 Set Brightness
Syntax Parameters 0xFE 0x99 [brightness] 254 153 [brightness] Length Description 1 Display brightness setting (0 to 255). This command sets the display [brightness]. If the remember function is on, this command acts the same as 'Set and Save Brightness'. Yes 255 Hexadecimal Decimal Parameter brightness
Description
Remembered Default
10.5 Set and Save Brightness
Syntax Parameters Description Remembered Hexadecimal 0xFE 0x98 [brightness] Decimal 254 152 [brightness] Parameter Length Description brightness 1 Backlight setting (0 to 255). This command sets and saves the display [brightness] as default. Always
10.6 Set Contrast
Syntax Hexadecimal Decimal ASCII Parameter contrast 0xFE 0x50 [contrast] 254 80 [contrast] 254 "P" [contrast] Length Description 1 Contrast value (0 to 255). LK202-25 42
Parameters
Matrix Orbital
Description
This command sets the display's contrast to [contrast], where [contrast] is a value between 0x00 and 0xFF (between 0 to 255). Lower values cause `on' elements in the display area to appear lighter, while higher values cause `on' elements to appear darker. Lighting and temperature conditions will affect the actual value used for optimal viewing. Individual display modules will also differ slightly from each other in appearance. In addition, values for optimal viewing while the display backlight is on may differ from values used when backlight is off. This command does not save the [contrast] value, and is lost after power down; but this command has the option of remembering the settings when issued with the Remember function `on' . When this is the case, this command is the same as the Set and Save Contrast command.
NOTE This command has only 32 levels for X-Board based displays, meaning eight contrast settings will have the same single effect. Efectively, values 0 through 7, 8 through 15, and so on will result in the same setting. Remembered Default Yes 128
10.7 Set and Save Contrast
Syntax Parameters Description Hexadecimal 0xFE 0x91 [contrast] Decimal 254 145 [contrast] Parameter Length Description contrast 1 Contrast value (0 to 255). This command sets the display's contrast to [contrast], where [contrast] is a value between 0x00 and 0xFF (between 0 to 255). Lower values cause `on' elements in the display area to appear lighter, while higher values cause `on' elements to appear darker. Lighting conditions will affect the actual value used for optimal viewing. Individual display modules will also differ slightly from each other in appearance. In addition, values for optimal viewing while the display backlight is on may differ from values used when backlight is off.
NOTE This command saves the [contrast] value so that it is not lost after power down. Remembered Default Yes 128
Matrix Orbital
LK202-25
43
11
Data Security
11.1 Introduction
Ensuring that your LK202-25 display's exactly what you want it to can be the difference between a projects success and failure. This is why we incorporate features such as Data Lock into the LK202-25 With this new feature you now are in control over of how and when settings will be changed so there is no need to worry about the module acting exactly like you expected it to because all the settings may be locked and remembered for the next power up.
11.2 Set Remember
Syntax Parameters Description Hexadecimal 0xFE 0x93 [switch] Decimal 254 147 [switch] Parameter Length Description switch 1 0: Do not remember, 1: Remember This command allows you to switch the remember function on and off. To use the remember function, set remember to on, then set all of the settings that you wish to save, settings that are listed as 'Remember: Yes' support being saved into the non-volatile memory. After you have set all of the commands that you wish to save, you may then cycle the power and check the display settings to ensure that all the settings have been saved. If you wish to use remember again after cycling the power, you must set it to on again.
NOTES * Writing to non-volatile memory is time consuming and slows down the operation of the display. * Non-volatile memory has a `write limit' and may only be changed approximately 100,000 times. Remembered Default No Do not remember
Matrix Orbital
LK202-25
44
11.3 Data Lock
Syntax Parameters Description Paranoia allows you to lock the module from displaying information, as well as enables the protection of the filesystem and module settings. Each bit corresponds corresponds to a different lock level, while sending a zero will unlock your display as the following tables explains: Bit 0-2 3 Data Lock Level Reserved Communication Speed Lock Setting Lock Description Should be left 0 When this bit is set (1) the Baud Rate and I2 C Slave address are locked When this bit is set (1) the display settings such as backlight, contrast and GPO settings are locked. (Internal EEPROM) Should be left 0 When this bit is set (1) all commands but commands 202/203 are locked. (cmd lock) When this bit is set (1) the module is locked from displaying any new information. (text lock) Hexadecimal Decimal Parameter level 0xFE 0xCA 0xF5 0xA0 [level] 254 202 245 160 [level] Length Description 1 Sets the data lock level
4
5 6
Reserved Command Lock
7
Display Lock
NOTES * Sending a new data lock level will override the previous data lock level. * Data lock levels may be combined.
Remembered Default Examples
Always 0 Hex 0x00 0x50 Dec 0 80 Binary 0 01010000 LK202-25 Description Unlock Setting and Command Lock 45
Matrix Orbital
11.4 Set and Save Data Lock
Syntax Parameters Description Hexadecimal 0xFE 0xCB 0xF5 0xA0 [level] Decimal 254 203 245 160 [level] Parameter Length Description level 1 Sets the data lock level This command will set and save the data lock level. See the Data Lock section for more information. Always 0
Remembered Default
11.5 Write Customer Data
Syntax Hexadecimal 0xFE 0x34 [data] Decimal 254 52 [data] ASCII 254 "4" [data] Parameter Length Description data 16 Writes the customer data Writes the customer Data. 16 Bytes of data can be saved in non-volatile memory. No
Parameters Description
Remembered
11.6 Read Customer Data
Syntax Hexadecimal 0xFE 0x35 Decimal 254 53 ASCII 254 "5" Reads whatever was written by Write Customer Data. No
Description Remembered
12
Miscellaneous
12.1 Introduction
This chapter covers the 'Report Version Number' and 'Read Module Type' commands. These commands can be particularly useful to find out more information about the display module before contacting technical support. Matrix Orbital LK202-25 46
12.2 Read Version Number
Syntax Hexadecimal 0xFE 0x36 Decimal 254 54 ASCII 254 "6" This command will return a byte representing the version of the module, see the following table as an example: Hex Value 0x19 0x57 Remembered No Version Number Version 1.9 Version 5.7
Description
12.3 Read Module Type
Syntax Hexadecimal Decimal ASCII 0xFE 0x37 254 55 254 "7"
Matrix Orbital
LK202-25
47
Description
This command will return a hex value corresponding to the the model number of the module see the following table: Hex 1 5 7 9 B D F 13 15 21 23 25 27 29 2B 31 33 35 37 39 3B 3D 3F 41 43 45 47 49 4B 4D 4F 51 53 55 57 5B 71 73 77 79 No Product ID LCD0821 LCD2041 LCD4041 LK204-25 VFD2021 VFD4021 VK204-25 GLC24064 GLK24064-25 Unused Unused GLK24064-16-1U-USB GLK19264-7T-1U-USB GLK12232-16-SM LK204-7T-1U LK404-AT LK402-12 LK204-25PC VK202-24-USB VK204-24-USB VK162-12 PK202-25 MOS-AL-202A MOS-AP-202A MOS-AL-082 MOS-AV-204 MOS-AV-402 VK402-12 LK402-25 PK204-25 MOS XBoard-S MOU LK202-25-USB LK204-25-USB LK162-12-TC Unused LK404-25 Unused GLT480282 Hex 2 6 8 A C E 10 14 16 22 24 26 28 2A 2C 32 34 36 38 3A 3C 3E 40 42 44 46 48 4A 4C 4E 50 52 54 56 58 5C 72 74 78 7A Product ID LCD2021 LCD4021 LK202-25 LK404-55 VFD2041 VK202-25 GLC12232 Unused Unused GLK12232-25 GLK12232-25-SM GLK24064-16-1U GLK12232-16 GLK19264-7T-1U LK204-7T-1U-USB MOS-AV-162A LK162-12 LK202-24-USB LK204-24-USB PK162-12 MOS-AP-162A MOS-AL-162A MOS-AV-202A PK202-24-USB MOS-AL-204 MOS-AL-402 LK082-12 VK404-55 VK402-25 Unused MOI XBoard-I XBoard-U VK202-25-USB VK204-25-USB Unused GLK240128-25 VK404-25 GLT320240 GLT240128
Remembered
Matrix Orbital
LK202-25
48
13
Command Summary
13.1 Communications
Description Changing the I2 C Slave Address Changing the Baud Rate Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal Page 18
Setting a Non-Standard Baud Rate
0xFE 0x33 [adr] 254 51 [adr] 254 "3" [adr] 0xFE 0x39 [speed] 254 57 [speed] 254 "9" [speed] 0xFE 0xA4 [speed] 254 164 [speed]
19
20
13.2 Text
Description Auto Scroll On Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Page 22
Auto Scroll Off
Clear Screen
Changing the Startup Screen Set Auto Line Wrap On
Set Auto Line Wrap Off
Set Cursor Position
Go Home
0xFE 0x51 254 81 254 "Q" 0xFE 0x52 254 82 254 "R" 0xFE 0x58 254 88 254 "X" 0xFE 0x40 254 64 254 "@" 0xFE 0x43 254 67 254 "C" 0xFE 0x44 254 68 254 "D" 0xFE 0x47 [col] [row] 254 71 [col] [row] 254 "G" [col] [row] 0xFE 0x48 254 72 254 "H"
23
23
23
24
24
24
25
Matrix Orbital
LK202-25
49
Description Move Cursor Back
Move Cursor Forward
Underline Cursor On
Underline Cursor Off
Blinking Block Cursor On Blinking Block Cursor Off
Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII
0xFE 0x4C 254 76 254 "L" 0xFE 0x4D 254 77 254 "M" 0xFE 0x4A 254 74 254 "J" 0xFE 0x4B 254 75 254 "K" 0xFE 0x53 254 83 254 "S" 0xFE 0x54 254 84 254 "T"
Page 25
25
26
26
26
26
13.3 Special Characters
Description Creating a Custom Character Saving Custom Characters Loading Custom Characters Save Startup Screen Custom Characters Initialize Medium Number Place Medium Numbers Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Page 27
Initialize Horizontal Bar
Place Horizontal Bar Graph
0xFE 0x4E [refID] [data] 254 78 [refID] [data] 254 "N" [refID] [data] 0xFE 0xC1 [Bank] [ID] [Data] 254 193 [Bank] [ID] [Data] 0xFE 0xC0 [Bank] 254 192 [Bank] 0xFE 0xC2 [refID] [data] 254 194 [refID] [data] 0xFE 0x6D 254 109 254 "m" 0xFE 0x6F [Row] [Col] [Digit] 254 111 [Row] [Col] [Digit] 254 "o" [Row] [Col] [Digit] 0xFE 0x68 254 104 254 "h" 0xFE 0x7C [Col] [Row] [Dir] [Length] 254 124 [Col] [Row] [Dir] [Length] 254 "|" [Col] [Row] [Dir] [Length]
28 29 29 30
30
31
31
Matrix Orbital
LK202-25
50
Description Initialize Narrow Vertical Bar Initialize Wide Vertical Bar Place Vertical Bar
Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII
0xFE 0x73 254 115 254 "s" 0xFE 0x76 254 118 254 "v" 0xFE 0x3D [Column] [Length] 254 61 [Column] [Length] 254 "=" [Column] [Length]
Page 31
32
32
13.4 General Purpose Output
Description General Purpose Output Off General Purpose Output On Set Startup GPO state Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal Page 33
0xFE 0x56 [Num] 254 86 [Num] 254 "V" [Num] 0xFE 0x57 [Num] 254 87 [Num] 254 "W" [Num] 0xFE 0xC3 [Num] [state] 254 195 [Num] [state]
33
34
13.5 Dallas 1-Wire
Description Search for a 1-Wire Device Dallas 1-Wire Transaction Syntax Hexadecimal Decimal Hexadecimal Decimal Page 0xFE 0xC8 0x2 34 254 200 2 0xFE 0xC8 0x1 [flags] [SndBits] [RcvBits] [Data] 35 254 200 1 [flags] [SndBits] [RcvBits] [Data]
13.6 Keypad
Description Auto Transmit Key Presses On Auto Transmit Key Presses Off Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Page 37
0xFE 0x41 254 65 254 "A" 0xFE 0x4F 254 79 254 "O"
37
Matrix Orbital
LK202-25
51
Description Poll Key Press
Clear Key Buffer
Set Debounce Time
Set Auto Repeat Mode
Auto Repeat Mode Off
Assign Keypad Codes
Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal
0xFE 0x26 254 38 254 "&" 0xFE 0x45 254 69 254 "E" 0xFE 0x55 [time] 254 85 [time] 254 "U" [time] 0xFE 0x7E [mode] 254 126 [mode] 254 "~" [mode] 0xFE 0x60 254 96 254 "`" 0xFE 0xD5 [KDown] [KUp] 254 213 [KDown] [KUp]
Page 38
38
39
39
40
40
13.7 Display Functions
Description Display On Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Decimal ASCII Hexadecimal Decimal Page 41
Display Off
Set Brightness Set and Save Brightness Set Contrast
Set and Save Contrast
0xFE 0x42 [min] 254 66 [min] 254 "B" [min] 0xFE 0x46 254 70 254 "F" 0xFE 0x99 [brightness] 254 153 [brightness] 0xFE 0x98 [brightness] 254 152 [brightness] 0xFE 0x50 [contrast] 254 80 [contrast] 254 "P" [contrast] 0xFE 0x91 [contrast] 254 145 [contrast]
42
42 42 42
43
13.8 Data Security
Description Set Remember Syntax Hexadecimal Decimal Page 44
0xFE 0x93 [switch] 254 147 [switch]
Matrix Orbital
LK202-25
52
Description Data Lock Set and Save Data Lock Write Customer Data
Read Customer Data
Syntax Hexadecimal Decimal Hexadecimal Decimal Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII
0xFE 0xCA 0xF5 0xA0 [level] 254 202 245 160 [level] 0xFE 0xCB 0xF5 0xA0 [level] 254 203 245 160 [level] 0xFE 0x34 [data] 254 52 [data] 254 "4" [data] 0xFE 0x35 254 53 254 "5"
Page 45 46 46
46
13.9 Miscellaneous
Description Read Version Number Syntax Hexadecimal Decimal ASCII Hexadecimal Decimal ASCII Page 47
Read Module Type
0xFE 0x36 254 54 254 "6" 0xFE 0x37 254 55 254 "7"
47
13.10 Command By Number
Command Hex 0x26 0x33 0x34 0x35 0x36 0x37 0x39 0x3D 0x40 0x41 0x42 0x43 0x44 0x45 0x46 0x47 0x48 Description Page Dec ASCII 38 "&" 51 "3" 52 "4" 53 "5" 54 "6" 55 "7" 57 "9" 61 "=" 64 "@" 65 "A" 66 "B" 67 "C" 68 "D" 69 "E" 70 "F" 71 "G" 72 "H"
Poll Key Press Changing the I2 C Slave Address Write Customer Data Read Customer Data Read Version Number Read Module Type Changing the Baud Rate Place Vertical Bar Changing the Startup Screen Auto Transmit Key Presses On Display On Set Auto Line Wrap On Set Auto Line Wrap Off Clear Key Buffer Display Off Set Cursor Position Go Home
38 18 46 46 47 47 19 32 23 37 41 24 24 38 42 24 25
Matrix Orbital
LK202-25
53
Command Hex 0x4A 0x4B 0x4C 0x4D 0x4E 0x4F 0x50 0x51 0x52 0x53 0x54 0x55 0x56 0x57 0x58 0x60 0x68 0x6D 0x6F 0x73 0x76 0x7C 0x7E 0x91 0x93 0x98 0x99 0xA4 0xC0 0xC1 0xC2 0xC3 0xC8 0xCA
Description Page Dec ASCII 74 "J" 75 "K" 76 "L" 77 "M" 78 "N" 79 "O" 80 "P" 81 "Q" 82 "R" 83 "S" 84 "T" 85 "U" 86 "V" 87 "W" 88 "X" 96 "`" 104 "h" 109 "m" 111 "o" 115 "s" 118 "v" 124 "|" 126 "~" 145 147 152 153 164 192 193 194 195 200 202
Underline Cursor On Underline Cursor Off Move Cursor Back Move Cursor Forward Creating a Custom Character Auto Transmit Key Presses Off Set Contrast Auto Scroll On Auto Scroll Off Blinking Block Cursor On Blinking Block Cursor Off Set Debounce Time General Purpose Output Off General Purpose Output On Clear Screen Auto Repeat Mode Off Initialize Horizontal Bar Initialize Medium Number Place Medium Numbers Initialize Narrow Vertical Bar Initialize Wide Vertical Bar Place Horizontal Bar Graph Set Auto Repeat Mode Set and Save Contrast Set Remember Set and Save Brightness Set Brightness Setting a Non-Standard Baud Rate Loading Custom Characters Saving Custom Characters Save Startup Screen Custom Characters Set Startup GPO state Dallas 1-Wire Transaction Data Lock
26 26 25 25 27 37 42 22 23 26 26 39 33 33 23 40 31 30 30 31 32 31 39 43 44 42 42 20 29 28 29 34 35 45
Matrix Orbital
LK202-25
54
14
Appendix
14.1 Specifications
14.1.1 Environmental
Table 68: Environmental Specifications Standard Temperature Extended Temperature Operating Temperature 0 C to +50 C -20 C to +70 C C to +70 C Storage Temperature -20 -30 C to +80 C Operating Relative Humidity 90% max non-condensing Vibration (Operating) 4.9 m/s2 XYZ directions Vibration (Non-Operating) 19.6 m/s2 XYZ directions Shock (Operating) 29.4 m/s2 XYZ directions Shock (Non-Operating) 490 m/s2 XYZ directions
14.1.2
Electrical
Table 69: Electrical Specifications Standard Wide Voltage (V)
Supply Voltage Minimum Current Backlight On (YG, IY & FY) Backlight On (R, FG & FA) Backlight On (GW, WB, FW & FB)
+5Vdc 0.25V
Wide Voltage with Efficient Switching Power Supply (VPT) +9V to +15V +9V to +35V 40mA typical add 130mA (170 mA) typical add 150mA (190 mA) typical add 60mA (100 mA) typical
14.2 Optical Characteristics
Table 70: Optical Characteristics Character x Lines 20 columns x 2 rows Module Size 116.00 mm x 37.00 mm x 25.73 mm Character Size 3.20 mm x 5.55 mm Display Size 79.00 mm x 17.00 mm LED Backlight Half-Life (YG, IY & FY) 50, 000 hours typical LED Backlight Half-Life (R, FG & FA) 20, 000 hours typical LED Backlight Half-Life (GW, WB, FW & FB) 10, 000 hours typical Matrix Orbital LK202-25 55
NOTE To prolong life, it is recommended that the backlight be turned off when the display is not in use.
Matrix Orbital
LK202-25
56
14.3 Physical Layout
Figure 23: Physical Diagram
Matrix Orbital
LK202-25
57
14.4 Ordering Information
L 1 K 2 20 3 2 4 -25 5 -FB 6 -V 7 -E 8
Table 71: Part Numbering Scheme
# 1 2 3 4 5
Description Screen Type Input Type Width Height Keypad Buttons
6
Color (Text/Background)
7 8
Input Voltage Temperature
Options L: Liquid Crystal Display* K: External Keypad 20: Twenty Character Columns 2: Two Character Rows -25: Twenty-Five Key Input Maximum NP: Standard Grey/Yellow-Green GW: Grey/White WB: White/Blue R: Red/Black IY: Yellow/Black (STN) FA: Amber/Black FB: Blue/Black FG: Green/Black FW: White/Black FY: Yellow/Black (FFSTN) NP: Standard (4.75-5.25V) -V: Extended Votlage (9.00-15.0V) NP: Standard (0 C to +50C) -E: Extended Temperature (-20 C to +70 C) Table 72: Part Options
NOTE * Also available with a Vaccum Florescent Display in the VK202-25 model
14.5 Definitions
E Extended Temperature (-20C to 70C) VPT Wide Voltage with Efficient Switching Power Supply (+9 to +35Vdc) V Wide Voltage (+9 to +15Vdc) GW Grey Text / White Background WB White Text / Blue Background Matrix Orbital LK202-25 58
R Inverse Red IY Inverse Yellow FA FFSTN Inverse Amber FB FFSTN Inverse Blue FG FFSTN Inverse Green FW FFSTN Inverse White FY FFSTN Inverse Yellow MSB Most Significant Byte LSB Least Significant Byte
14.6 Contacting Matrix Orbital
Telephone Sales: 1(403)229-2737 Support: 1(403)207-3750 On The Web Sales: http://www.MatrixOrbital.com Support: http://www.MatrixOrbital.ca Forums: http://www.lcdforums.com
14.7 Revision History
Revision 3.0 3.1
Description Initial Manual Updated Backlight Life
Table 73: Revision History Author Matrix Orbital Clark
Matrix Orbital
LK202-25
59


▲Up To Search▲   

 
Price & Availability of LK202-25-FW

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X